#ifndef     __MAIN_H__
#define     __MAIN_H__

/*******************************时钟GPIO1_IO03相关寄存器地址定义*****************************************/

/**
 *   CCM相关寄存器地址定义   I.MX6U中的 CCM有CCM_CCGR0~CCM_CCGR6这7个寄存器控制着I.MX6U的所有外设时钟开关
 */
#define         CCM_CCGR0                   *( (volatile unsigned int *)0x020C4068 )   //这里就可以使用   CCM_CCRG0 = xxxx 即直接赋值
#define         CCM_CCGR1                   *( (volatile unsigned int *)0x020C406C ) 
#define         CCM_CCGR2                   *( (volatile unsigned int *)0x020C4070 ) 
#define         CCM_CCGR3                   *( (volatile unsigned int *)0x020C4074 ) 
#define         CCM_CCGR4                   *( (volatile unsigned int *)0x020C4078 ) 
#define         CCM_CCGR5                   *( (volatile unsigned int *)0x020C407C ) 
#define         CCM_CCGR6                   *( (volatile unsigned int *)0x020C4080 ) 


/**
 *   IOMUX相关寄存器地址定义
 */
#define         SW_MUX_GPIO1_IO03           *( (volatile unsigned int *)0x020E0068 )  
#define         SW_PAD_GPIO1_IO03           *( (volatile unsigned int *)0x020E02F4 ) 

/**
 *   GPIO1相关寄存器地址定义                   //下面这些地址值,是copy过来的
 */
#define         GPIO1_DR                    *( (volatile unsigned int *)0x0209C000 )  
#define         GPIO1_GDIR                  *( (volatile unsigned int *)0x0209C004 ) 
#define         GPIO1_PSR                   *( (volatile unsigned int *)0x0209C008 )  
#define         GPIO1_ICR1                  *( (volatile unsigned int *)0x0209C00C ) 
#define         GPIO1_ICR2                  *( (volatile unsigned int *)0x0209C010 )  
#define         GPIO1_IMR                   *( (volatile unsigned int *)0x0209C014 ) 
#define         GPIO1_ISR                   *( (volatile unsigned int *)0x0209C018 )
#define         GPIO1_EDGE_SEL              *( (volatile unsigned int *)0x0209C01C )

#endif // !1